package com.cloud.school.app.service;

import com.cloud.school.app.model.UserModel;

import java.util.List;
import java.util.Map;

/**
 * @ClassName UserService
 * @Description TODO
 * @Author 36297
 * @Date 2018/12/3 20:26
 * @Version 1.0
 */
public interface UserService {
    boolean save(UserModel userModel);

    boolean update(UserModel userModel);

    UserModel queryById(Long userId);

    UserModel queryDetailById(Long userId);

    List<UserModel> queryByIds(List<Long> userIds);

    List<UserModel> queryDetailByIds(List<Long> userIds);

    List<UserModel> queryByCollegeIdAndMajorId(Long collegeId, Long majorId);

    UserModel queryByPhoneNum(String cellPhoneNum);

    boolean isNickNameExist(String nickName);

    boolean isPhoneNumExist(String cellPhoneNum);

    Map<Long, Long> queryCollegeMajarRegisterNum(Long collegeId);
}
